﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Forest.Cat.Domain.Entities;

namespace Forest.Cat.Domain.Repository.Mappings {
    public partial class SettingMap : EntityTypeConfiguration<Setting> {
        public SettingMap() {
            this.ToTable("sys_setting");
            this.HasKey(s => s.Id);
            this.Property(s => s.Name).IsRequired().HasMaxLength(200);
            this.Property(s => s.Value).IsRequired().HasMaxLength(2000);
        }
    }
}
